<div>
    <div class="search" ng-show="searchOpen" data-ng-init="clearAllGeos();">
        <h4 class="title" >CAD导入分析</h4>
        <div class="zs-form-tab">
            <table width="100%">
                <tbody>
                    <tr>
                        <td class="left" colspan="2">
                        	<!--&nbsp;&nbsp;&nbsp;
                        	<input name="fileField" type="file" 
				                id="fileField_dj" style="width:180px;height: 28px;" 
				                ng-model="itcrazy_arcgis_analysis.arcgisAnalysisObejct.gpsAnalysisFile"/>-->
				            
				            <ag-Upload 	ng-model="uploaddata" 
								para="{filters:[{title:'CAD文件', extensions:'dxf'}], 
								maxSize:10240,
								btnLable:'导入',
								onUploaded:'onFileUpload',
								uploadUrl:'http://localhost:9090/gather/rest/fileAnalyse/plupload/uploadFile?function=cadFileAnalysis&namespace=2012'}">
                        	</ag-Upload>
                        </td>
                    </tr>
                    <tr>
                        <td class="right" width="28%">分析图层：</td>
                        <td style="text-align:left;"><label data-ng-init="initAnalysisLayer();">林地资源<label>
                           <!-- <ag-Combotree class="zs-input" style="width:172px;height: 28px" 
								ng-change="onchangeAnalysisLayer();"
								fn='analysisLayer'
								para="{ uDictionary:false,
										pidField:'id',
										nfn:'tjlbSearch,tjfieldSearch',
										checkbox:false,
										valueField:'id',
										textField:'name',
										onlyLeafCheck:true,
										bindField:'sdomaincode',
										bindFn:'menus',
										keyField:'id',
										orderObject:{index:0},
										queryFields:'index,id,name,type,url,medname,layerId,queryLayerId',
										pageSize:1200,
										maxNavs:6,
										queryObject:{},
										
										ssn:'analysisconfig'}"
								ng-model="analysisLayer.layer"
								text-Value="analysisLayer.layerName"></ag-Combotree>-->
                        </td>
                    </tr>
                    <tr>
                        <td class="right">缓冲距离：</td>
                        <td style="text-align:left;">
                           <input class="zs-input" 
											ng-model="analysisLayerBufferDistance"
											placeholder="输入范围..." style="width:175px;"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="right">统计类别：</td>
                        <td style="text-align:left;">
                         <ag-Combotree class="zs-input" style="width:172px;height: 28px" 					
							fn='tjlbSearch' 
                			para="{uDictionary:false,
									foreignField:'pid',
									pidField:'pid',
									checkbox:false,
									valueField:'id',
									textField:'aliasName',
									onlyLeafCheck:true,
									bindField:'name',
									bindFn:'menus',
									keyField:'id',
									orderObject:{},
									queryFields:'pid,id,aliasName,name',
									pageSize:1200,
									maxNavs:6,
									
									queryObject:{'pid:=':'2d85b4982316406ba53d0c4d28ddc1e9'},
									ssn:'statisticscateory'}"
                        	ng-model="tjlbSearch.selectedValue"
							text-Value="tjlbSearch.selectedValuename"></ag-Combotree>
                        </td>
                    </tr>
                    <tr>
                        <td class="right">统计字段：</td>
                        <td style="text-align:left;">
                        	<ag-Combotree class="zs-input" style="width:172px;height:28px;"
                        		fn='tjfieldSearch' 
                        		para="{uDictionary:false,
									foreignField:'pid',
									pidField:'pid',
									checkbox:false,
									valueField:'id',
									textField:'aliasName',
									onlyLeafCheck:true,
									bindField:'name',
									bindFn:'menus',
									keyField:'id',
									orderObject:{},
									queryFields:'pid,id,aliasName,name',
									pageSize:1200,
									maxNavs:6,
						
									queryObject:{'pid:=':'2d85b4982316406ba53d0c4d28ddc1e9'},
									ssn:'statisticsfield'}"
		                        ng-model="tjfieldSearch.selectedValue"></ag-Combotree>
                        </td>
                    </tr>
                    <tr>
                        <td class="center" colspan="2">
                            <input type="button" name="ok" ng-click="validDrawAnalysisParan(analysis);"
								value="分析" class="zs-btn" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        
<!--        <div class="zs-form-tab" style="height: 300px;">
        	<div class="fore-core-itab-title" data-ng-init="iniTab('sjfx', 'map');">
		         <ul class="idTabs">
		            <li style="width:60px;"><a ng-click="setTab('sjfx','map')" class="{{tabs['sjfx'].tabClass['map']}}" >统计图</a></li>
		            <li style="width:60px;"><a ng-click="setTab('sjfx','table')" class="{{tabs['sjfx'].tabClass['table']}}">统计表</a></li>  

		            <li style="width:80px;"><a ng-click="setTab('sjfx','xb')" class="{{tabs['sjfx'].tabClass['xb']}}">数据详情</a></li> 
		         </ul>
		    </div>
		    <div ng-show="tabs['sjfx'].tabClass['map']" class="container"  >
		    	<pie-charts data-source="analysisShowResult" 
					style="width:250px;height: 250px;float:bottom;margin-bottom:0px;">
		     	</pie-charts>
		    </div>
		    <div ng-show="tabs['sjfx'].tabClass['table']" class="container"  >
		    <table border="2">
		     		<thead>
		     			<td ng-repeat="(key,value) in tableResult[0]">
							<label ng-bind="key"></label>
						</td>
		     		</thead>
		     		<tbody>
		     			<tr ng-repeat="currow in tableResult">
							<td ng-repeat="(key,value) in currow">
								<label ng-bind="value"></label>
							</td>
						</tr>
		     		</tbody>
		     	</table>
		    </div>
		    
		 	<div ng-show="tabs['sjfx'].tabClass['xb']" class="container"  >
		     	<ul class="list">
		            <li class="item" ng-repeat="currow in resultXb">
		                <p><a>
		                 	<span ng-repeat="key in showfieldinfo"><label  
		                 		ng-bind="currow.attributes[key.name] | numlen">
		                 	</label>-</span>
		                </a>
		                <a ng-click="dirToxb(currow)"><font color="blue">定位</font></a>
		                </p>
		            </li>
		        </ul>
		    </div>
        </div>-->
    </div>
    
    <div class="result" ng-show="!searchOpen" style="width:390px">
        <a class="back" ng-click="setSearchOpen(true);">返回</a>
        <a class="back" style="right: 120px;color: blue;" ng-click="exportResult()">导出分析结果</a>
        <a class="back" style="right: 40px;color: blue;" ng-click="printImage()">导出分析图形</a>
     	<div class="zs-form-tab" style="height: 500px;width:380px">
     		
     		<div class="container" style="height: 95%;overflow-y: auto;" >
     			
 				<div class="fore-core-itab-title" data-ng-init="iniTab('sjfx1', 'map');">
			        <ul class="idTabs">
			            <li style="width:80px;"><a class="{{tabs['sjfx1'].tabClass['map']}}">统计图</a></li>  
			        </ul>
		    	</div>
     		
		    	<pie-charts data-source="analysisShowResult" 
					style="width:250px;height: 250px;float:bottom;margin-bottom:0px;">
		     	</pie-charts>
		     	
		     	<div class="fore-core-itab-title" data-ng-init="iniTab('sjfx2', 'table');">
			        <ul class="idTabs">
			            <li style="width:80px;"><a class="{{tabs['sjfx2'].tabClass['table']}}">统计表</a></li>  
			        </ul>
		    	</div>

				<div style="margin-top: 5px;">
			    	<table border="2">
			     		<thead>
			     			<td ng-repeat="(key,value) in tableResult[0]">
								<label ng-bind="key"></label>
							</td>
			     		</thead>
			     		<tbody>
			     			<tr ng-repeat="currow in tableResult">
								<td ng-repeat="(key,value) in currow">
									<label ng-bind="value"></label>
								</td>
							</tr>
			     		</tbody>
			     	</table>
			   </div>
			   
			   <div class="fore-core-itab-title" data-ng-init="iniTab('sjfx3', 'xb');">
			        <ul class="idTabs">
			            <li style="width:80px;"><a class="{{tabs['sjfx3'].tabClass['xb']}}">小班详情</a></li>  
			        </ul>
		    	</div>
		     	
		     	<div style="margin-top: 5px;">
			     	<table border="2">
			     		<thead>
			     			<td ng-repeat="key in showfieldinfo">
								<label ng-bind="key.alias"></label>
							</td>
			     		</thead>
			     		<tbody>
			     			<tr ng-repeat="currow in resultXb">
								<td ng-repeat="key in showfieldinfo">
									<a ng-mousemove="highFeatureSelectGraphic(currow.attributes._guid);" 
										ng-mouseleave="featureSelectGraphic(currow.attributes._guid);"
										ng-click="showInfoWindowAndResize(currow.attributes._guid);">
													
									<label ng-bind="currow.attributes[key.name] | numlen"></label>
									</a>
								</td>
							</tr>
			     		</tbody>
			     	</table>
			    </div>
		    </div>
        </div>
    </div>
</div>